﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ControlPanel.ascx.cs"
    Inherits="SEVN.Web.Framework.Controls.ControlPanel" %>
<div id="controlpanel">
    <div style="height: 180px; border: 1px solid #EDEDED; padding: 5px;">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <div id="groupControl1" style="width: 230px; float:left;">                    
                    <asp:DropDownList ID="cboPages" runat="server" Width="200px" AutoPostBack="True"
                        DataTextField="PageName" DataValueField="PageID" OnSelectedIndexChanged="cboPages_SelectedIndexChanged">
                    </asp:DropDownList>
                    <br />
                    <asp:CheckBox ID="chkSelected" AutoPostBack="True" runat="server" Text="Chọn giao diện"
                        OnCheckedChanged="chkSelected_CheckedChanged" />
                    <br />
                    <asp:Panel ID="pnlSelectSkin" runat="server" Enabled="false">
                        <asp:DropDownList ID="cboSkins" runat="server" Width="200px" AutoPostBack="True"
                            DataTextField="SkinName" DataValueField="SkinID" OnSelectedIndexChanged="cboSkins_SelectedIndexChanged">
                        </asp:DropDownList>
                        <br />
                        <asp:CheckBox ID="chkAccept" AutoPostBack="True" runat="server" Text="Tôi đồng ý áp dụng"
                            OnCheckedChanged="chkAccept_CheckedChanged" />
                        <br />
                        <asp:Button ID="btnApply" Enabled="false" runat="server" Text="Áp dụng" OnClick="btnApply_Click" />
                    </asp:Panel>
                </div>
                <div id="groupControl2" style="width: 230px; float:left;">
                    <asp:DropDownList ID="cboControls" runat="server" Width="200px" AutoPostBack="True"
                        DataTextField="ControlName" DataValueField="ControlID">
                    </asp:DropDownList>
                    <br />
                    <asp:Button ID="btnAdd" runat="server" Width="75" Text="Thêm mới" OnClick="btnAdd_Click" />
                </div>
                <asp:Panel ID="pnlSkin" runat="server" Visible="false">
                    <div style="width: auto; background-color:transparent; border: 5px solid #CECECE; height: 550px;
                        position: absolute; top: 75px; z-index: 9999">
                        <div>
                            <asp:LinkButton ID="lblCloseSkin" Style="position: absolute; top: -20px; right: 0px;
                                text-decoration: none; font-weight: bold;" runat="server" OnClick="lblCloseSkin_Click">X</asp:LinkButton>
                        </div>
                        <asp:Image ID="imgSkin" Style="height: 550px;" runat="server" />
                    </div>
                </asp:Panel>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    <div style=" padding:3px; background-color:Green; border-top-left-radius: 5px;  border-top-right-radius: 5px; position:absolute; top:-25px; color:#FFF">Công cụ tùy chỉnh nhanh - Quick Option</div>
</div>
